package com.black.platform.organization.service.handler;

import com.black.common.vo.OrganizationVo;
import com.black.platform.codeType.vo.CodeTypeVo;
import com.black.platform.organization.po.Organization;

import java.util.List;

public interface OrganizationHandlerService {
    /***
     * 根据 comCode获取组织机构树
     * @param comCode 组织机构代码
     * @param comName 组织机构名称
     * @param isIncludeInvalid 是否包含关闭数据
     * @return 组织机构树
     */
    List<OrganizationVo> getOrganizationVoTreeByComCode(String comCode, String comName, boolean isIncludeInvalid);

    Organization getByComCode(String comCode);

    boolean saveOrUpdate(Organization organization);

    boolean delete(String comCode);

    List<CodeTypeVo> getOrganizationVoTree();

    String getSubComCode(String comCode);

    Organization getMainOrganization();
}
